package com.ios.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * IosSysUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ios_sys_user", catalog = "ios")
public class IosSysUser implements java.io.Serializable {

	// Fields

	private Long userId;
	private String userName;
	private String userCode;
	private String userSpell;
	private String userGender;
	private String loginAllow;
	private String userTel;
	private String userMobile;
	private String userAddress;
	private String userBirthday;
	private String remark;
	private String password;
	private Long orgId;

	// Constructors

	/** default constructor */
	public IosSysUser() {
	}

	/** full constructor */
	public IosSysUser(String userName, String userCode, String userSpell,
			String userGender, String loginAllow, String userTel,
			String userMobile, String userAddress, String userBirthday,
			String remark, String password, Long orgId) {
		this.userName = userName;
		this.userCode = userCode;
		this.userSpell = userSpell;
		this.userGender = userGender;
		this.loginAllow = loginAllow;
		this.userTel = userTel;
		this.userMobile = userMobile;
		this.userAddress = userAddress;
		this.userBirthday = userBirthday;
		this.remark = remark;
		this.password = password;
		this.orgId = orgId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "user_id", unique = true, nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "user_name")
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "user_code")
	public String getUserCode() {
		return this.userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	@Column(name = "user_spell")
	public String getUserSpell() {
		return this.userSpell;
	}

	public void setUserSpell(String userSpell) {
		this.userSpell = userSpell;
	}

	@Column(name = "user_gender", length = 10)
	public String getUserGender() {
		return this.userGender;
	}

	public void setUserGender(String userGender) {
		this.userGender = userGender;
	}

	@Column(name = "login_allow", length = 10)
	public String getLoginAllow() {
		return this.loginAllow;
	}

	public void setLoginAllow(String loginAllow) {
		this.loginAllow = loginAllow;
	}

	@Column(name = "user_tel", length = 50)
	public String getUserTel() {
		return this.userTel;
	}

	public void setUserTel(String userTel) {
		this.userTel = userTel;
	}

	@Column(name = "user_mobile", length = 50)
	public String getUserMobile() {
		return this.userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	@Column(name = "user_address")
	public String getUserAddress() {
		return this.userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	@Column(name = "user_birthday")
	public String getUserBirthday() {
		return this.userBirthday;
	}

	public void setUserBirthday(String userBirthday) {
		this.userBirthday = userBirthday;
	}

	@Column(name = "remark")
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "password", length = 200)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "org_id")
	public Long getOrgId() {
		return this.orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

}